define([
    'underscore', 'marionette', 'templates', 'vent'
], function(_, marionette, templates, vent) {
    return marionette.ItemView.extend({
        tagName: 'tr',
        template: _.template(templates.item),
        events: {
            "click .open": function() {
                vent.trigger('item:openFolder', this.model);
            }
        },
        render: function() {
            this.$el.html(this.template(this.model.toJSON()));
            return this;
        }
    });
});
